package cn.micro.system.manage.entity;
import com.baomidou.mybatisplus.annotation.FieldFill;
import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableId;
import java.time.LocalDateTime;
import java.io.Serializable;
import lombok.Data;
import lombok.EqualsAndHashCode;
import lombok.experimental.Accessors;
/**
 * <p>
 * 文件信息表
 * </p>
 *
 * @author wr
 * @since 2024-01-05
 */
@Data
@EqualsAndHashCode(callSuper = false)
@Accessors(chain = true)
public class AssetOdsFileRecordInfo implements Serializable {

    private static final long serialVersionUID = 1L;

    /**
     * 文件主键ID
     */
    @TableId(value = "id", type = IdType.AUTO)
    private Long id;

    /**
     * 文件上传时的名称
     */
    private String originalName;

    /**
     * 文件存储时的名称
     */
    private String storeName;

    /**
     * 文件存储地址
     */
    private String url;

    /**
     * 存储类型：0：local（即本地）,1:minio(minio文件系统),2:OSS（阿里云OSS）
     */
    private Integer storeType;

    /**
     * 创建时间
     */
    @TableField(fill = FieldFill.INSERT)
    private LocalDateTime createTime;

    public static final String ID = "id";

    public static final String ORIGINAL_NAME = "original_name";

    public static final String STORE_NAME = "store_name";

    public static final String URL = "url";

    public static final String STORE_TYPE = "store_type";

    public static final String CREATE_TIME = "create_time";

}
